//用户管理

var express = require('express');
var router = express.Router();
var userlist = require('./userlist');
var userinfo = require('./userinfo');
var userdel = require('./userdel');
var useredit = require('./useredit');
var useradd = require('./useradd');
var userAuthList = require('./authList');
var userRoleList = require('./roleList');
var userSetup = require('./userSetup')

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('用户管理页面');
});


router.use('/list',userlist);           //用户列表路由
router.use('/info',userinfo);           //个人信息修改路由
router.use('/del',userdel);             //删除用户路由
router.use('/edit',useredit);           //用户信息编辑路由
router.use('/add',useradd);             //添加用户路由
router.use('/setup',userSetup)          //用户重置密码路由
router.use('/authlist',userAuthList);   //用户权限列表路由
router.use('/rolelist',userRoleList)    //用户角色列表路由




module.exports = router;
